from flask_login import LoginManager
from model.model import User

login_manager = LoginManager()

@login_manager.user_loader
def user_login(user_id):
    return User.query.get(user_id)



